package com.tjc.mvc.test.v1.bean.service;

import com.tjc.mvc.test.v1.bean.Address;
import com.tjc.mvc.test.v1.bean.User;
import com.tjc.spring.core.annotation.Autowird;
import com.tjc.spring.web.annotation.Service;
import com.tjc.mvc.test.v1.bean.dao.UserMapper;

@Service
public class UserService {
    @Autowird
    private UserMapper userMapper;

    private User user;

    private Address address;

    public UserService() {
    }

    public UserService(User user, Address address) {
        this.user = user;
        this.address = address;
    }

    public String getUser() {
        return userMapper.getUser();
    }
}
